package com.yzd.learnjava.containers;

public class Groundhog2 extends Groundhog {
	public Groundhog2(int n) {
		super(n);
	}
	public int hashCode() {
		return number;
	}
	
	public boolean equals(Object obj) {
		return (obj instanceof Groundhog2) && (number == ((Groundhog2)obj).number);
	}
	
	public static void main(String[] args) throws Exception {
		SpringDetector.detectSpring(Groundhog2.class);
	}
}
